package com.bbs.dao;

import com.bbs.entity.Comment;
import com.bbs.entity.Nice;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface NiceDao {

    int updateNice(@Param("id") int id, @Param("num") int num);

    Nice findByPidAndUid(@Param("pid") int pid, @Param("uid") Integer uid);

    int save(Nice nice);

    int deleteByPidAndUid(@Param("pid") int pid, @Param("uid") Integer uid);
}
